﻿@model IEnumerable<DFYE.Web.Models.student>

@{

}

<style>
    a.student
    {
        width:70px; 
        float:left;
        display:block;
        height:22px; padding:2px; line-height:22px;
        text-align:center;
        margin:2px;
        text-decoration:none;
        }
    a.student:link,a.student:visited
    {
     background:#a0a0a0;
        }
    a.student:hover{ background:#ee9900;}
</style>


    <h2>学生列表</h2>
    <div><input id="enterKey" style="width:100px" /><button>查询</button></div>
    <div>
    @foreach (var item in Model) {

            <a href="index/@item.ID" class="student">
                @Html.DisplayFor(modelItem => item.name)
            </a>
                


    }
    </div>

